package com.netease.image.video;

import android.content.Context;
import android.graphics.Bitmap;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;

public class d
{
  public static final int d = 0;
  public static final int e = 1;
  public static final int f = 2;
  public u a;
  View b;
  Context c;
  private final ImageViewTouchBase[] g = new ImageViewTouchBase[2];
  private int h = 0;
  private int i = 0;
  private Animation[] j;
  private Animation[] k;
  private int l = 3000;
  private boolean m = true;

  public d(Context paramContext, View paramView, an paraman)
  {
    this.b = paramView;
    this.g[0] = ((ImageViewTouchBase)paramView.findViewById(2131558439));
    this.g[1] = ((ImageViewTouchBase)paramView.findViewById(2131558440));
    for (ImageViewTouchBase localImageViewTouchBase : this.g)
    {
      if (localImageViewTouchBase == null)
        continue;
      localImageViewTouchBase.setVisibility(4);
      localImageViewTouchBase.a(paraman);
    }
    this.c = paramContext;
    this.i = -1;
    Animation[] arrayOfAnimation1 = new Animation[1];
    arrayOfAnimation1[0] = d(2130968587);
    this.j = arrayOfAnimation1;
    Animation[] arrayOfAnimation2 = new Animation[1];
    arrayOfAnimation2[0] = e(2130968588);
    this.k = arrayOfAnimation2;
    this.i = 0;
  }

  private Animation d(int paramInt)
  {
    return AnimationUtils.loadAnimation(this.c, paramInt);
  }

  private Animation e(int paramInt)
  {
    return AnimationUtils.loadAnimation(this.c, paramInt);
  }

  public Bitmap a(int paramInt1, int paramInt2)
  {
    Bitmap localBitmap = null;
    if (this.a != null)
    {
      if (paramInt1 < 0)
        paramInt1 = 0;
      a locala = this.a.a(paramInt1);
      if (locala != null)
        localBitmap = locala.f();
    }
    return localBitmap;
  }

  public void a(int paramInt)
  {
    this.l = paramInt;
  }

  public void a(Bitmap paramBitmap)
  {
    ImageViewTouchBase localImageViewTouchBase1 = this.g[this.h];
    int n = 1 + this.h;
    this.h = n;
    if (n == this.g.length)
      this.h = 0;
    ImageViewTouchBase localImageViewTouchBase2 = this.g[this.h];
    if (localImageViewTouchBase2 == null);
    while (true)
    {
      return;
      localImageViewTouchBase2.setVisibility(0);
      localImageViewTouchBase2.a(new aj(paramBitmap), true, true);
      localImageViewTouchBase2.bringToFront();
      int i1 = this.i;
      localImageViewTouchBase2.startAnimation(this.j[i1]);
      localImageViewTouchBase2.setVisibility(0);
      Animation localAnimation = this.k[i1];
      localImageViewTouchBase1.setVisibility(4);
      localImageViewTouchBase1.startAnimation(localAnimation);
    }
  }

  public void a(u paramu)
  {
    this.a = paramu;
  }

  public void a(boolean paramBoolean)
  {
    this.m = paramBoolean;
  }

  public boolean a()
  {
    return this.m;
  }

  public int b()
  {
    return this.l;
  }

  public int b(int paramInt)
  {
    int n;
    if (this.a.b() > 0)
      if (paramInt < -1 + this.a.b())
        n = paramInt + 1;
    while (true)
    {
      return n;
      n = 0;
      continue;
      n = -1;
    }
  }

  public void b(Bitmap paramBitmap)
  {
    c(0);
    a(paramBitmap);
  }

  public void c()
  {
    ImageViewTouchBase[] arrayOfImageViewTouchBase = this.g;
    int n = arrayOfImageViewTouchBase.length;
    for (int i1 = 0; i1 < n; i1++)
      arrayOfImageViewTouchBase[i1].a();
  }

  public void c(int paramInt)
  {
    if (this.b != null)
      this.b.setVisibility(paramInt);
  }

  public int d()
  {
    if (this.a != null);
    for (int n = this.a.b(); ; n = 0)
      return n;
  }

  public void e()
  {
    if (this.a != null)
      this.a.d();
    this.a = null;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.image.video.d
 * JD-Core Version:    0.6.0
 */